package com.will.order.convert;

import com.will.common.dto.OrderDto;
import com.will.order.domain.Order;
import org.mapstruct.Mapper;
import org.mapstruct.Mapping;
import org.mapstruct.Mappings;

@Mapper(componentModel = "spring")
public interface OrderConvert {
    @Mappings({
            @Mapping(source = "orderCount",target = "count"),
            @Mapping(source = "orderAmount",target = "amount")
    })
    Order dto2Order(OrderDto orderDto);
}
